<html>
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
  <title>
   enthumelon的回复  | 数螺 | NAUT IDEA
  </title>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" rel="stylesheet"/>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
  <style type="text/css">
   #xmain img {
                  max-width: 100%;
                  display: block;
                  margin-top: 10px;
                  margin-bottom: 10px;
                }

                #xmain p {
                    line-height:150%;
                    font-size: 16px;
                    margin-top: 20px;
                }

                #xmain h2 {
                    font-size: 24px;
                }

                #xmain h3 {
                    font-size: 20px;
                }

                #xmain h4 {
                    font-size: 18px;
                }


                .header {
	           background-color: #0099ff;
	           color: #ffffff;
	           margin-bottom: 20px;
	        }

	        .header p {
                  margin: 0px;
                  padding: 10px 0;
                  display: inline-block;  
                  vertical-align: middle;
                  font-size: 16px;
               }

               .header a {
                 color: white;
               }

              .header img {
                 height: 25px;
              }
  </style>
  <script src="http://cdn.bootcss.com/jquery/3.0.0/jquery.min.js">
  </script>
  <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
   MathJax.Hub.Config({elements: ["bbpress-forums"]});
  </script>
  <script src="http://nautstatic-10007657.file.myqcloud.com/static/css/readability.min.js" type="text/javascript">
  </script>
  <script type="text/javascript">
   $(document).ready(function() {
                 var loc = document.location;
                 var uri = {
                  spec: "http://cos.name/cn/profile/63771/replies/page/5/",
                  host: "http://cos.name",
                  prePath: "http://cos.name",
                  scheme: "http",
                  pathBase: "http://cos.name/"
                 };
    
                 var documentClone = document.cloneNode(true);
                 var article = new Readability(uri, documentClone).parse();
     
                 document.getElementById("xmain").innerHTML = article.content;
                });
  </script>
  <!-- 1466467399: Accept with keywords: (title(0.0):论坛, topn(0.233333333333):文字,分类,定义,帖子,编译,会员,数字,文件,用户名,假设,主站,车辆,审题,收藏夹,函数,问题,密码,总计,脚本,字符,形参,作用域,大神,代码,主题,普通,情形,论坛,空格,变量).-->
 </head>
 <body class="bbp-user-page single singular bbpress paged-5 single-author sidebar" onload="">
  <div class="header">
   <div class="container">
    <div class="row">
     <div class="col-xs-6 col-sm-6 text-left">
      <a href="/databee">
       <img src="http://nautidea-10007657.cos.myqcloud.com/logo_white.png"/>
      </a>
      <a href="/databee">
       <p>
        数螺
       </p>
      </a>
     </div>
     <div class="hidden-xs col-sm-6 text-right">
      <p>
       致力于数据科学的推广和知识传播
      </p>
     </div>
    </div>
   </div>
  </div>
  <div class="container text-center">
   <h1>
    enthumelon的回复
   </h1>
  </div>
  <div class="container" id="xmain">
   <div class="hfeed site" id="page">
    <header class="site-header" id="masthead" role="banner">
     <div id="cos-logo">
      <a href="http://cos.name/cn">
       <img src="http://cos.name/cn/wp-content/themes/COS-forest/images/headers/cos-logo.png"/>
      </a>
     </div>
     <div class="navbar" id="navbar">
      <nav class="navigation main-navigation" id="site-navigation" role="navigation">
       <h3 class="menu-toggle">
        菜单
       </h3>
       <div class="menu-%e8%8f%9c%e5%8d%951-container">
        <ul class="nav-menu" id="menu-%e8%8f%9c%e5%8d%951">
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-407772" id="menu-item-407772">
          <a href="http://cos.name/cn/">
           论坛首页
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407773" id="menu-item-407773">
          <a href="http://cos.name/cn/forums/">
           讨论区
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407774" id="menu-item-407774">
          <a href="http://cos.name/cn/wp-login.php?action=register">
           注册
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407819" id="menu-item-407819">
          <a href="http://cos.name/">
           主站
          </a>
         </li>
        </ul>
       </div>
      </nav>
      <!-- #site-navigation -->
     </div>
     <!-- #navbar -->
    </header>
    <!-- #masthead -->
    <div class="site-main" id="main">
     <div class="content-area" id="primary">
      <div class="site-content" id="content" role="main">
       <article class="post-0 type- status-publish hentry" id="post-0">
        <header class="entry-header">
         <h1 class="entry-title">
          enthumelon
         </h1>
        </header>
        <!-- .entry-header -->
        <div class="entry-content">
         <div id="bbpress-forums">
          <div id="bbp-user-wrapper">
           <div id="bbp-single-user-details">
            <div id="bbp-user-avatar">
             <span class="vcard">
              <a class="url fn n" href="http://cos.name/cn/profile/63771/" rel="me" title="enthumelon">
               <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=150&amp;d=monsterid&amp;r=g"/>
              </a>
             </span>
            </div>
            <!-- #author-avatar -->
            <div id="bbp-user-navigation">
             <ul>
              <li class="">
               <span class="vcard bbp-user-profile-link">
                <a class="url fn n" href="http://cos.name/cn/profile/63771/" rel="me" title="enthumelon的档案">
                 档案
                </a>
               </span>
              </li>
              <li class="">
               <span class="bbp-user-topics-created-link">
                <a href="http://cos.name/cn/profile/63771/topics/" title="enthumelon发起的主题">
                 发起的主题
                </a>
               </span>
              </li>
              <li class="current">
               <span class="bbp-user-replies-created-link">
                <a href="http://cos.name/cn/profile/63771/replies/" title="enthumelon创建的回复">
                 创建的回复
                </a>
               </span>
              </li>
              <li class="">
               <span class="bbp-user-favorites-link">
                <a href="http://cos.name/cn/profile/63771/favorites/" title="enthumelon的收藏夹">
                 收藏夹
                </a>
               </span>
              </li>
             </ul>
            </div>
            <!-- #bbp-user-navigation -->
           </div>
           <!-- #bbp-single-user-details -->
           <div id="bbp-user-body">
            <div class="bbp-user-replies-created" id="bbp-user-replies-created">
             <h2 class="entry-title">
              回复的主题
             </h2>
             <div class="bbp-user-section">
              <div class="bbp-pagination">
               <div class="bbp-pagination-count">
                查看 15 个帖子 - 61 到 75（总计 741 个）
               </div>
               <div class="bbp-pagination-links">
                <a class="prev page-numbers" href="http://cos.name/cn/profile/63771/replies/page/4/">
                 ←
                </a>
                <a class="page-numbers" href="http://cos.name/cn/profile/63771/replies/">
                 1
                </a>
                <span class="page-numbers dots">
                 …
                </span>
                <a class="page-numbers" href="http://cos.name/cn/profile/63771/replies/page/4/">
                 4
                </a>
                <span class="page-numbers current">
                 5
                </span>
                <a class="page-numbers" href="http://cos.name/cn/profile/63771/replies/page/6/">
                 6
                </a>
                <span class="page-numbers dots">
                 …
                </span>
                <a class="page-numbers" href="http://cos.name/cn/profile/63771/replies/page/50/">
                 50
                </a>
                <a class="next page-numbers" href="http://cos.name/cn/profile/63771/replies/page/6/">
                 →
                </a>
               </div>
              </div>
              <ul class="forums bbp-replies" id="topic-0-replies">
               <li class="bbp-header">
                <div class="bbp-reply-author">
                 作者
                </div>
                <!-- .bbp-reply-author -->
                <div class="bbp-reply-content">
                 帖子
                </div>
                <!-- .bbp-reply-content -->
               </li>
               <!-- .bbp-header -->
               <li class="bbp-body">
                <div class="bbp-reply-header" id="post-410551">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月24日 上午5:24
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410531/">
                    R中如何将分类变量抽取出来？
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410531/#post-410551">
                   4 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410551 -->
                <div class="odd bbp-parent-forum-993 bbp-parent-topic-410531 bbp-reply-position-4 user-id-63771 post-410551 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复
                   <a href="http://cos.name/cn/topic/410531/#post-410550" rel="nofollow">
                    3 楼
                   </a>
                   的
                   <a href="http://cos.name/cn/profile/63771/" rel="nofollow">
                    enthumelon
                   </a>
                   ：
                  </p>
                  <p>
                   想起来坛子里用正则的人不少，下面的也可以哦(shell下):
                  </p>
                  <pre class="highlight ">gawk '{x=gensub(";","\t"$2"\n","g",$1); print x "\t" $2}' cos410531.txt
</pre>
                  <p>
                   结果如下
                  </p>
                  <pre class="highlight ">$ cat cos410531.txt
columnA columnB
beijing 0.5454
beijing;shanghai        0.3536
guangzhou;tianjing;zhenzhou     0.5250
$ gawk '{x=gensub(";","\t"$2"\n","g",$1); print x "\t" $2}' cos410531.txt
columnA columnB
beijing 0.5454
beijing 0.3536
shanghai        0.3536
guangzhou       0.5250
tianjing        0.5250
zhenzhou        0.5250
</pre>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410550">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月24日 上午4:25
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410531/">
                    R中如何将分类变量抽取出来？
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410531/#post-410550">
                   3 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410550 -->
                <div class="even bbp-parent-forum-993 bbp-parent-topic-410531 bbp-reply-position-3 user-id-63771 post-410550 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   Python 写着玩（假设你那个第一列的什么1 2 3 4没有的话）。
                  </p>
                  <pre class="highlight ">import pandas as pd


def readCos410531(filename):
    """COS 410531
    """

    res = {}
    with open(filename, "r") as text:
        next(text)
        ii = 0
        for line in text:
            value, key = line.split()
            value = value.split(";")
            for i in value:
                res[ii] = [key, i]
                ii = ii+1
    re = pd.DataFrame.from_dict(res).transpose()
    re.columns = ["Value", "City"]
    return re


# Example
filename = "cos410531.txt"
re = readCos410531(filename)

</pre>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410549">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月24日 上午3:46
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410522/">
                    求解！！R语言中如何让read.csv 仅仅读取有数据的行
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410522/#post-410549">
                   4 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410549 -->
                <div class="odd bbp-parent-forum-1006 bbp-parent-topic-410522 bbp-reply-position-4 user-id-63771 post-410549 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复
                   <a href="http://cos.name/cn/topic/410522/#post-410534" rel="nofollow">
                    2 楼
                   </a>
                   的
                   <a href="http://cos.name/cn/profile/lujincao314159/" rel="nofollow">
                    lujincao314159
                   </a>
                   ：
                  </p>
                  <p>
                   982273行的Excel很大丈夫。此外吧，帮助文档上写的有blank.lines.skip的选项。当然，如果你的空行有乱七八糟的字符（比如空格还有某些不可见的ASCII字符）可能不行，那种情形只能sed awk什么预处理了。
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410548">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月24日 上午3:36
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410457/">
                    如何仅将文字行和数字行混合的text文件中的数字行读入R？
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410457/#post-410548">
                   4 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410548 -->
                <div class="even bbp-parent-forum-999 bbp-parent-topic-410457 bbp-reply-position-4 user-id-63771 post-410548 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复
                   <a href="http://cos.name/cn/topic/410457/#post-410546" rel="nofollow">
                    3 楼
                   </a>
                   的
                   <a href="http://cos.name/cn/profile/46931/" rel="nofollow">
                    zwdbordeaux
                   </a>
                   ：
                  </p>
                  <pre class="highlight ">system('grep "^[0-9]" myfile/mod.txt &gt; myfile2/mod.txt')
read.table("myfile2/mode.txt")
</pre>
                  <p>
                   linux/Mac下或者装了Rtools/Cygwin的Win下可以。你要么就R使用Readline一行一行循环弄。
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410547">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月24日 上午3:32
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410535/">
                    线性拟合的时候强迫过某一点
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410535/#post-410547">
                   3 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410547 -->
                <div class="odd bbp-parent-forum-999 bbp-parent-topic-410535 bbp-reply-position-3 user-id-63771 post-410547 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复
                   <a href="http://cos.name/cn/topic/410535/#post-410542" rel="nofollow">
                    2 楼
                   </a>
                   的
                   <a href="http://cos.name/cn/profile/368512/" rel="nofollow">
                    doctorjxd
                   </a>
                   ：
                  </p>
                  <p>
                   完全不一样。 假设是 $ Y = \beta X + \epsilon$ 过点 $(a,b)=(x_1,\lodts,x_n,y_0)$, 其中$b=y_0$那么可以写成
                  </p>
                  <pre class="highlight ">lm( c(y,b) ~ rbind(x,a) )
</pre>
                  <p>
                   或者使用linear contrast 的办法，比如glht(multcomp)
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410521">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月23日 上午12:31
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410509/">
                    用FOR循环找数的问题
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410509/#post-410521">
                   5 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410521 -->
                <div class="even bbp-parent-forum-999 bbp-parent-topic-410509 bbp-reply-position-5 user-id-63771 post-410521 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <pre class="highlight ">a[!(a%in%d)]="NO"
</pre>
                  <p>
                   你们为什么要用循环？还有类似于lambda的sapply?
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410504">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月21日 上午5:39
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410502/">
                    如何存储DocumentTermMatrix
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410502/#post-410504">
                   2 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410504 -->
                <div class="odd bbp-parent-forum-999 bbp-parent-topic-410502 bbp-reply-position-2 user-id-63771 post-410504 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <pre class="highlight ">save(corpus.jiang,file="ABC.RData",compression_level=9)
</pre>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410492">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月20日 上午11:10
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410488/">
                    车辆急转弯的判断方法
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410488/#post-410492">
                   2 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410492 -->
                <div class="even bbp-parent-forum-999 bbp-parent-topic-410488 bbp-reply-position-2 user-id-63771 post-410492 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   又见到hairpin bend了。AXA那个kaggle项目有个很实际的问题：GPS精度没那么高…最糟糕情形下，95%CI有7.8米的误差[1]。然后这个有行业背景问题[2]在COS上应该也没有权威答案吧? 方案2显而易见的问题在于:转弯角度怎么算–你总要定义个起点。车辆转弯有国家标准，你用类似的[3]？
                  </p>
                  <p>
                   ref
                   <br/>
                   1.
                   <a href="http://www.gps.gov/systems/gps/performance/accuracy/" rel="nofollow">
                    http://www.gps.gov/systems/gps/performance/accuracy/
                   </a>
                   <br/>
                   2. Plazanet, Corinne, Nara Martini Bigolin, and Anne Ruas. “Experiments with learning techniques for spatial model enrichment and line generalization.” GeoInformatica 2.4 (1998): 315-333.
                   <br/>
                   3. GB7258-2012
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410486">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月20日 上午9:31
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410457/">
                    如何仅将文字行和数字行混合的text文件中的数字行读入R？
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410457/#post-410486">
                   2 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410486 -->
                <div class="odd bbp-parent-forum-999 bbp-parent-topic-410457 bbp-reply-position-2 user-id-63771 post-410486 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   我觉得你的pattern是 “:[任意空格][数字]”所以shell一句话
                  </p>
                  <pre class="highlight ">grep ":\s[0-9]" new.txt &gt; Mod.txt
</pre>
                  <p>
                   ——————
                  </p>
                  <p>
                   不好意思审题错了，应该是
                  </p>
                  <pre class="highlight ">grep "^[0-9]" new.txt &gt; Mod.txt
</pre>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410443">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月18日 上午4:35
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410437/">
                    使用rcpp、cppFunction函数书写基于RcppEigen的小函数不能编译问题两则
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410437/#post-410443">
                   3 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410443 -->
                <div class="even bbp-parent-forum-996 bbp-parent-topic-410437 bbp-reply-position-3 user-id-63771 post-410443 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复
                   <a href="http://cos.name/cn/topic/410437/#post-410439" rel="nofollow">
                    2 楼
                   </a>
                   的
                   <a href="http://cos.name/cn/profile/370815/" rel="nofollow">
                    Thirdwing
                   </a>
                   ：
                   <br/>
                   也就是不能字符转义？'”\n”‘在R里面也不是非法字符啊。
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410419">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月13日 上午12:04
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410415/">
                    【阿里巴巴搜索事业部】最核心部门2015年实习生内推机会
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410415/#post-410419">
                   2 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410419 -->
                <div class="odd bbp-parent-forum-1016 bbp-parent-topic-410415 bbp-reply-position-2 user-id-63771 post-410419 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   帮顶，你都开始招人了？
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410345">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月7日 上午5:17
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410315/">
                    CentOS 6.5 装R遇到的问题, 大神们进来看看！
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410315/#post-410345">
                   7 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410345 -->
                <div class="even bbp-parent-forum-999 bbp-parent-topic-410315 bbp-reply-position-7 user-id-63771 post-410345 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复
                   <a href="http://cos.name/cn/topic/410315/#post-410331" rel="nofollow">
                    6 楼
                   </a>
                   的
                   <a href="http://cos.name/cn/profile/377380/" rel="nofollow">
                    superdesolator
                   </a>
                   ：
                   <br/>
                   脚本原来是为几台centos安装写的，rainbow.sh脚本单纯定义了几种颜色，应该没有影响。具体说来就是使用rpm增加key后包管理安装如下依赖
                  </p>
                  <p>
                   yum -y groupinstall ‘Development Tools’
                   <br/>
                   yum -y install gfortran
                   <br/>
                   yum -y install cmake
                   <br/>
                   yum -y groupinstall “X Window System”
                   <br/>
                   yum -y install readline-devel tcl tk libX11-devel libXtst-devel xorg-x11-xtrans-devel libpng-devel libXt-devel
                  </p>
                  <p>
                   然后标准流程下载R并编译安装。我使用R的USTC源，你可以换成别的。之后使用脚本写.Rprofile配置文件。
                  </p>
                  <p>
                   你若已经编译过，在原来的目录make distclean即可，不用删除的。
                  </p>
                  <p>
                   bash脚本使用就是创立文件把代码复制进去（比如说run.sh），然后CLI下
                  </p>
                  <p>
                   chmod u+x run.sh
                   <br/>
                   ./run.sh
                  </p>
                  <p>
                   就能执行了。
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410325">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月5日 上午2:35
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410250/">
                    使用Rcpp形参传递表示加&amp;与不加&amp;区别疑问
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410250/#post-410325">
                   13 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410325 -->
                <div class="odd bbp-parent-forum-996 bbp-parent-topic-410250 bbp-reply-position-13 user-id-63771 post-410325 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   因为个人对Rcpp完全没有兴趣，所以用纯Cpp写，其实你想要做的是这个，多写很废话的代码(头文件是R.h, Rinternals.h):
                  </p>
                  <pre class="highlight ">//cos410250.cpp
#include&lt;R.h&gt;
#include &lt;Rinternals.h&gt;
extern "C" {
void swap1(SEXP  a,SEXP  b){
  int temp;
  int *ax=INTEGER(a),*bx=INTEGER(b);
  temp=ax[0];
  ax[0]=bx[0];
  bx[0]=temp;
}
}
</pre>
                  <p>
                   R 调用的时候需要讲究一点，专门找了个Win的版本：
                  </p>
                  <pre class="highlight ">dyn.load("cos410250.dll")
SwapTest &lt;- function(a,b,env= .GlobalEnv){
	cat("Infunction Before:\t",a,", ",b,'\n')
	storage.mode(a) &lt;- storage.mode(b) &lt;- "integer"
	.Call("swap1",a,b)
	cat("In function After:\t",a,", ",b,'\n')
	assign("a", a, envir = env)
	assign("b", b, envir = env)	
}


a=100L
b=200L

cat("Before:\t",a,", ",b,'\n')
SwapTest(a,b)
cat("After:\t",a,", ",b,'\n')
</pre>
                  <p>
                   于是其实问题在于作用域。
                  </p>
                  <p>
                   下面使用index操作而非S expression
                  </p>
                  <pre class="highlight ">#include&lt;R.h&gt;
#include &lt;Rinternals.h&gt;


extern "C" {

void swap1(SEXP  a,SEXP  b){
  int temp;
  int *ax=INTEGER(a),*bx=INTEGER(b);
  temp=ax[0];
  ax[0]=bx[0];
  bx[0]=temp;
}

void swap2(int *ax,int*  bx){
  int temp;
  temp=ax[0];
  ax[0]=bx[0];
  bx[0]=temp;
  Rprintf("In C value:[%d, %d]\n",ax[0],bx[0]);
}

}

</pre>
                  <p>
                   以及相应的R代码
                  </p>
                  <pre class="highlight ">#
dyn.load("cos410250.dll")
SwapTest &lt;- function(a,b,env= .GlobalEnv){
	cat("Infunction Before:\t",a,", ",b,'\n')
	storage.mode(a) &lt;- storage.mode(b) &lt;- "integer"
	.Call("swap1",a,b)
	cat("In function After:\t",a,", ",b,'\n')
	assign("a", a, envir = env)
	assign("b", b, envir = env)	
}

SwapTest2 &lt;- function(a,b,env= .GlobalEnv){
	cat("Infunction Before:\t",a,", ",b,'\n')
	storage.mode(a) &lt;- storage.mode(b) &lt;- "integer"
	.C("swap2",a,b)
	cat("In function After:\t",a,", ",b,'\n')
	assign("a", a, envir = env)
	assign("b", b, envir = env)	
}


SwapTest3 &lt;- function(a,b,env= .GlobalEnv){
	cat("Infunction Before:\t",a,", ",b,'\n')
	storage.mode(a) &lt;- storage.mode(b) &lt;- "integer"
	re = .C("swap2",a,b)
	a=re[[1]]
	b=re[[2]]
	assign("a", a, envir = env)
	assign("b", b, envir = env)
	cat("In function After:\t",a,", ",b,'\n')
}



a=100L
b=200L
cat("-------------------------------------------\n")
cat("Use SEXP\n")
cat("-------------------------------------------\n")
cat("Before:\t",a,", ",b,'\n')
SwapTest(a,b)
cat("After:\t",a,", ",b,'\n')


a=100L
b=200L

cat("-------------------------------------------\n")
cat("Use index example 1: Wrong\n")
cat("-------------------------------------------\n")
cat("Another Version:\n")
cat("Before:\t",a,", ",b,'\n')
SwapTest2(a,b)
cat("After:\t",a,", ",b,'\n')
cat("-------------------------------------------\n")

a=100L
b=200L

cat("Use index example 1: Right\n")
cat("-------------------------------------------\n")
cat("The 3rd Version:\n")
cat("Before:\t",a,", ",b,'\n')
SwapTest3(a,b)
cat("After:\t",a,", ",b,'\n')
cat("-------------------------------------------\n")

</pre>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410324">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月5日 上午12:56
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410315/">
                    CentOS 6.5 装R遇到的问题, 大神们进来看看！
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410315/#post-410324">
                   4 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410324 -->
                <div class="even bbp-parent-forum-999 bbp-parent-topic-410315 bbp-reply-position-4 user-id-63771 post-410324 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   Please check my blog for a bash script:
                   <a href="https://yifanyang.wordpress.com/2014/12/13/r-install-script-for-centos-6-6/" rel="nofollow" target="_blank" title="Install R on Windows">
                    blog
                   </a>
                  </p>
                  <p>
                   You may need to install png/cairo libs (and devel) first and re-compile your R. Meanwhile, you may have to check whether Xt/X11 devel is installed.
                  </p>
                  <p>
                   The R is default repository is rather classic/old, so don’t bother installing it directly using default repository.
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-410257">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2015年3月2日 上午12:39
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/410250/">
                    使用Rcpp形参传递表示加&amp;与不加&amp;区别疑问
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/410250/#post-410257">
                   5 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-410257 -->
                <div class="odd bbp-parent-forum-996 bbp-parent-topic-410250 bbp-reply-position-5 user-id-63771 post-410257 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   <img src="http://sdn.geekzu.org/avatar/23e1a080e5b4e8dd18f14d65d651f38d?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/63771/" rel="nofollow" title="查看enthumelon的档案">
                   enthumelon
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   我记得R是指针传递，所以你C++中打印下swap1里面的ab看看对不对。引用是别名没错了。
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
               </li>
               <!-- .bbp-body -->
               <li class="bbp-footer">
                <div class="bbp-reply-author">
                 作者
                </div>
                <div class="bbp-reply-content">
                 帖子
                </div>
                <!-- .bbp-reply-content -->
               </li>
               <!-- .bbp-footer -->
              </ul>
              <!-- #topic-0-replies -->
              <div class="bbp-pagination">
               <div class="bbp-pagination-count">
                查看 15 个帖子 - 61 到 75（总计 741 个）
               </div>
               <div class="bbp-pagination-links">
                <a class="prev page-numbers" href="http://cos.name/cn/profile/63771/replies/page/4/">
                 ←
                </a>
                <a class="page-numbers" href="http://cos.name/cn/profile/63771/replies/">
                 1
                </a>
                <span class="page-numbers dots">
                 …
                </span>
                <a class="page-numbers" href="http://cos.name/cn/profile/63771/replies/page/4/">
                 4
                </a>
                <span class="page-numbers current">
                 5
                </span>
                <a class="page-numbers" href="http://cos.name/cn/profile/63771/replies/page/6/">
                 6
                </a>
                <span class="page-numbers dots">
                 …
                </span>
                <a class="page-numbers" href="http://cos.name/cn/profile/63771/replies/page/50/">
                 50
                </a>
                <a class="next page-numbers" href="http://cos.name/cn/profile/63771/replies/page/6/">
                 →
                </a>
               </div>
              </div>
             </div>
            </div>
            <!-- #bbp-user-replies-created -->
           </div>
          </div>
         </div>
        </div>
        <!-- .entry-content -->
        <footer class="entry-meta">
        </footer>
        <!-- .entry-meta -->
       </article>
       <!-- #post -->
      </div>
      <!-- #content -->
     </div>
     <!-- #primary -->
     <div class="sidebar-container" id="tertiary" role="complementary">
      <div class="sidebar-inner">
       <div class="widget-area">
        <aside class="widget bbp_widget_login" id="bbp_login_widget-2">
         <h3 class="widget-title">
          登录
         </h3>
         <form action="http://cos.name/cn/wp-login.php" class="bbp-login-form" method="post">
          <fieldset>
           <legend>
            登录
           </legend>
           <div class="bbp-username">
            <label for="user_login">
             用户名:
            </label>
           </div>
           <div class="bbp-password">
            <label for="user_pass">
             密码:
            </label>
           </div>
           <div class="bbp-remember-me">
            <label for="rememberme">
             记住用户名
            </label>
           </div>
           <div class="bbp-submit-wrapper">
            <button class="button submit user-submit" id="user-submit" name="user-submit" tabindex="104" type="submit">
             登录
            </button>
           </div>
           <div class="bbp-login-links">
            <a class="bbp-register-link" href="http://cos.name/cn/wp-login.php?action=register" title="注册">
             注册
            </a>
            <a class="bbp-lostpass-link" href="http://cos.name/cn/wp-login.php?action=lostpassword" title="忘记密码">
             忘记密码
            </a>
           </div>
          </fieldset>
         </form>
        </aside>
        <aside class="widget widget_text" id="text-7">
         <h3 class="widget-title">
          搜索
         </h3>
         <div class="textwidget">
          <form action="http://www.google.com/search" id="bbp-search-form" method="get" onsubmit="Gsitesearch(this)" role="search">
           <div>
           </div>
          </form>
          <form id="bbp-search-form-baidu" onsubmit="g(this)" role="search">
           <div>
           </div>
          </form>
         </div>
        </aside>
        <aside class="widget widget_text" id="text-2">
         <h3 class="widget-title">
          新鲜事
         </h3>
         <div class="textwidget">
          <ul>
           <li>
            <a href="http://cos.name/cn/topics/">
             最新帖子
            </a>
           </li>
           <li>
            <a href="http://cos.name/cn/view/popular/">
             最热门主题
            </a>
           </li>
           <li>
            <a href="http://cos.name/cn/view/no-replies/">
             消灭零回复
            </a>
           </li>
          </ul>
         </div>
        </aside>
        <aside class="widget widget_text" id="text-3">
         <h3 class="widget-title">
          RSS订阅
         </h3>
         <div class="textwidget">
          <ul>
           <li>
            <img src="http://cos.name/wp-includes/images/rss.png"/>
            <a href="http://cos.name/cn/topics/feed/">
             所有主题
            </a>
           </li>
           <li>
            <img src="http://cos.name/wp-includes/images/rss.png"/>
            <a href="http://cos.name/cn/forums/feed/">
             所有帖子
            </a>
           </li>
          </ul>
         </div>
        </aside>
       </div>
       <!-- .widget-area -->
      </div>
      <!-- .sidebar-inner -->
     </div>
     <!-- #tertiary -->
    </div>
    <!-- #main -->
    <footer class="site-footer" id="colophon" role="contentinfo">
     <div class="site-info">
      版权所有 © 2014 统计之都 | 由
      <a href="http://wordpress.org/">
       WordPress
      </a>
      构建 | 主题修改自
      <a href="http://wordpress.org/themes/twentythirteen">
       Twenty Thirteen
      </a>
     </div>
     <!-- .site-info -->
    </footer>
    <!-- #colophon -->
   </div>
   <!-- #page -->
  </div>
 </body>
</html>